package com.qtjf.qtmoneyservice;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;

/**
 * Created by Administrator on 2017/1/17 0017.
 */

public class MyApplication extends Application {

    static RequestQueue queue;
    static IWXAPI api;
    @Override
    public void onCreate() {
        super.onCreate();
        queue= Volley.newRequestQueue(getApplicationContext());
        api= WXAPIFactory.createWXAPI(this,"wx2e7a1230cebe0ef9");

    }

    public static RequestQueue getQueue() {
        return queue;
    }

    public static void setQueue(RequestQueue queue) {
        MyApplication.queue = queue;
    }

    public static IWXAPI getApi() {
        return api;
    }
}
